﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using StockFinder.Scenarios;
using StockFinder.Model;
using StockFinder.DataAccess;

namespace StockFinder.Applications.Main
{
    public partial class ScenarioTestForm : Form
    {
        public ScenarioTestForm()
        {
            InitializeComponent();
        }

        private void _Scenario1Button_Click(object sender, EventArgs e)
        {
            var scenario1 = new Scenario1();
            const string SYMBOL_NAME = "AAPL";
            var prices = DailyPriceDataAccess.GetAllDailyPricesBySymbol(SYMBOL_NAME);
            var symbol = new Symbol(){ Name = SYMBOL_NAME, Prices = prices };

            scenario1.Run(symbol);
        }
    }
}
